package com.biz.primus.ms.depot.feign;

import com.biz.primus.base.vo.SearchResult;
import com.biz.primus.model.depot.vo.DepotSearchResultVo;
import com.biz.primus.model.depot.vo.SearchDepotConditionVo;
import com.biz.primus.ms.depot.degraded.DegradedDepotSearchFeignClient;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * DepotSearchFeignClient
 *
 * @author jia JKLiues
 * @date 2017年10月12日
 * @reviewer
 * @see
 */
@FeignClient(qualifier = "depotSearchFeignClient", name = "service-search", fallback = DegradedDepotSearchFeignClient.class)
public interface DepotSearchFeignClient {

    /**
     * 搜索门店
     *
     * @param vo 搜索条件对象
     * @return SearchResult<DepotSearchResultVo>
     */
    @PostMapping("soa/depotSearchService/searchDepot")
    SearchResult<DepotSearchResultVo> searchDepot(@RequestBody SearchDepotConditionVo vo);
}